package com.tuyue.police.controller.vip;

import com.tuyue.police.biz.IServerBiz;
import com.tuyue.police.pojo.Server;
import com.tuyue.police.util.Result;
import com.tuyue.police.util.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: 王金海
 * @Description:
 * @Date: Created by Administrator on 2018/3/14.
 * @Modified By:
 */
@RestController
@RequestMapping("vip/server/")
public class ServerController {

    @Autowired
    private IServerBiz serverBiz;

    /**
     * 服务器list
     * @return
     */
    @GetMapping("list")
    public Result list(){
        List<Server> all = serverBiz.findAll();
        return ResultUtil.success(all);
    }
}
